﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace Tanks.Model
{
    /// <summary>
    /// This Entity represents a player the game (Tank)
    /// </summary>
    public class Player
    {
        // Where the tank is located
        public Vector2 Position { get; set; }

        // Bullet Information
        public Bullet Bullet { get; set; }

        // Rocket Information
        public Rocket Rocket { get; set; }

        // if the current user still alive
        public bool IsAlive { get; set; }

        // rotation angle of the tank
        public float Angle { get; set; }

        // color of the tank, bullet and rockets
        public Color Color { get; set; }

        // Direction Duadrant
        public Vector2 Cuadrant { get; set; }

        // Tranformation Matrix
        public Matrix Matrix { get; set; }

        // New Direction
        public Vector2 Direction { get; set; }

        // Position Defined by the Controller (Mouse, Keyboard or Gamepad)
        public Vector2 ControllerCoordinates { get; set; }

        public GamePadState Controller { get; set; }
    }
}
